package com.bupt.ilink.controller.bailian;

import com.aliyun.bailian20231229.models.*;
import com.bupt.ilink.config.BailianConfig;
import com.bupt.ilink.service.bailian.IndexService;
import com.bupt.ilink.tool.BailianFileTools;
import com.bupt.ilink.service.bailian.impl.*;
import com.bupt.ilink.tool.BailianFileTools;
import com.bupt.ilink.tool.BailianModelTools;
import com.bupt.ilink.utils.R;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;

@RestController
@RequestMapping("/index")
public class IndexController {
    @Autowired
    IndexService indexService;

    @PostMapping("/retrieve")
    public R retrieveIndex(String query, String path) throws Exception {
        return indexService.retrieveIndex(query, path);
    }
}
